<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<html> 
	<head>
		<meta http-equiv="Content-Type"
			content="text/html; charset=ISO-8859-1">
		<title>CT-IANP</title>
		<style type="text/css">   
  		<!--   
  		body {
  			margin-left: 0px;
  			margin-top: 0px;
  			margin-right: 0px;
  			margin-bottom: 0px;
  		}   
  		-->   
  		</style>
	</head>

	<script language="javascript" type="text/javascript">
	<!--
	function check() {  
		if(document.uploadForm.file.value == ""){
			alert("Please select a data file!");
			return false;
		}
		return true;
	}  
	-->
	</script>

	<body>
		<table align="center" cellpadding="4" width="880">
			<tr>
				<td colspan="2" align="center">
					<strong><font size="5"><font face="Verdana">CT-IANP</font> </font> </strong>
				</td>
			</tr>
			<tr>
				<td colspan="2" align="center">
					<table width="880">
						<tr>
							<td align="left"><font size="2">Open access granted; designed by Gao, Chen, and Siepmann, 2009 </font>
							</td>
							<td align="right">
								<font size="2"> <a target="_blank"
									href="https://cds.sun.com/is-bin/INTERSHOP.enfinity/WFS/CDS-CDS_Developer-Site/en_US/-/USD/ViewProductDetail-Start?ProductRef=java3d-1.5.1-oth-JPR@CDS-CDS_Developer">
										Install Java3D before your first use</a> </font>
							</td>
						</tr>
					</table>
				</td>
			</tr>
		</table>

		<table align="center" border="1" cellpadding="4">
			<tr>
				<td>
					<table>
						<tr height="60">
							<td align="center">
								<form name="uploadForm" onsubmit="return check()" method="post"
									enctype="multipart/form-data" action="uploadFile">
									<input type="file" name="file" size="35">
									<input type="submit" value="Upload">
									<input type="hidden" name="select" value=<%=request.getParameter("select")%>>
								</form>
							</td>
						</tr>
						<tr>
							<td>
								<applet name="height" code="applet.energy.EnergyHeight" align="middle"
									width="385" height="420">
									<param name="filename"
										value="<%=request.getParameter("filename")%>">
								</applet>
							</td>
						</tr>
					</table>
				</td>
				<td valign="middle" align="center">
					<applet name="molecule" code="applet.molecule.MoleculeNet"
						align="middle" width="480" height="500">
						<param name="select"
							value="<%=request.getParameter("select")%>">
						<param name="isGroup" value="true" />
					</applet>
				</td>
			</tr>
		</table>

	</body>
</html>